<%-- 
    Document   : ListaProyectos
    Created on : 21/11/2010, 02:54:47 PM
    Author     : Rainiero
--%>

<%@page import="Gui.*"%>
<%@page import="ServiceInterface.IFacade"%>
<%@page import="DataModel.*"%>
<%@page import="Proxy.ProxySAFP"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%

    String header = GuiHelper.GetInstance().GetHeader();
    String footer = GuiHelper.GetInstance().GetFooter();

    IFacade facade = new ProxySAFP().getServiceInterface();

    int pageNumber = RequestHelper.GetPageNumber(request);
    int projectsCount = facade.GetProjectsCount(Enums.ProjectType.Request, Enums.ProjectState.onRequest);
    ProjectSummary[] requests = facade.GetProjects(Enums.ProjectState.onRequest, Enums.ProjectType.Request, pageNumber);
    String tableHtml = ProjectGuiHelper.GetInstance().PrintProjectsTable(requests, projectsCount, pageNumber, "PendingRequests.jsp", true);

%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Lista de solicitudes pendientes de resolución</title>
        <link rel="stylesheet" type="text/css" href="../Styles/safp.css" />
    </head>
    <body>
        <%= header %>
        <h1>Solicitudes Presentadas</h1>
        <%= tableHtml %>
        <%= footer %>
    </body>
</html>
